class ChatMessageEntity {
  ChatMessageEntity({
      this.nickName, 
      this.photoUrl, 
      this.detailsId, 
      this.owner, 
      this.index, 
      this.age,
      this.count,
  });

  ChatMessageEntity.fromJson(dynamic json) {
    nickName = json['nickName'];
    photoUrl = json['photoUrl'];
    detailsId = json['detailsId'];
    owner = json['owner'];
    index = json['index'];
    age = json['age'];
  }
  String? nickName;
  String? photoUrl;
  String? detailsId;
  String? owner;
  int? index;
  int? age;
  int? count;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['nickName'] = nickName;
    map['photoUrl'] = photoUrl;
    map['detailsId'] = detailsId;
    map['owner'] = owner;
    map['index'] = index;
    map['age'] = age;
    return map;
  }

}